package com.yulinlin.admin.modules.sys.controller;

import com.yulinlin.common.controller.SuperController;
import io.swagger.annotations.*;


import com.yulinlin.common.domain.ResponseVo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.sys.domain.SysRoleEntity;

import com.yulinlin.admin.modules.sys.service.ISysRoleService;
import com.yulinlin.admin.modules.sys.domain.config.SysRoleConfig;
import com.yulinlin.admin.modules.sys.domain.page.SysRolePage;

@Api(tags = "系统角色")
@RestController
@RequestMapping("/sys/sysRole")
public class SysRoleController extends SuperController<SysRoleEntity,SysRolePage>  {


    @Autowired
    private ISysRoleService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<SysRoleConfig> config() {
        SysRoleConfig config =SysRoleConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
